<?php
/*
 * Summary : Created By Avik on 11th April,2010
 * Version : 1.0
 * Contents: This file Shows All the data
 * Chnages
 */

//#########INCLUDE FILES########

include_once 'conf/db-config.php';
include_once 'conf/error.php';
include_once 'clsFetchData.php';
include_once 'array_to_xml.php';
//##############################

$objFetchData = new clsFetchData();
$arrAllUnApprovedDataToShow = array();


$arrAllUnApprovedDataToShow  = $objFetchData->FetchDataToArray('y');

if(is_array($arrAllUnApprovedDataToShow) && count($arrAllUnApprovedDataToShow)>0)
{
	?>
	
	<?php 
	$arrAllUnApprovedDataToXML= array();
	$arrAllUnApprovedDataToXML  = $objFetchData->FetchDataToArray('y');
	
	array_to_xml($arrAllUnApprovedDataToXML,1);	
	header('Location: admin-homepage.php')	;
	
}
else
{
	print "No New Data Found";
}
